﻿using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations;
using Volo.Abp.ObjectExtending;
using Volo.Abp.Validation;

namespace Acme.BookStore2
{
    public class QuestionAndAnswerPostCreateOrUpdateDtoBase : ExtensibleObject
    {
        [Required]
        [DynamicStringLength(typeof(QuestionAndAnswerPostConsts), nameof(QuestionAndAnswerPostConsts.MaxTitleLength))]
        public string Title { get; set; }
        
        [DynamicStringLength(typeof(QuestionAndAnswerPostConsts), nameof(QuestionAndAnswerPostConsts.MaxContentLength))]
        public string Content { get; set; }

        public string Tags { get; set; }

        [DynamicStringLength(typeof(QuestionAndAnswerPostConsts), nameof(QuestionAndAnswerPostConsts.MaxDescriptionLength))]
        public string Description { get; set; }
    }
}